﻿@{
    ViewBag.Title = "Borrado de Usuarios";
}

<p align="right"> 
    @Html.ActionLink("<< Regresar", "AdminAccounts","Admin")
</p>

<fieldset>
    <legend>Bienvenido</legend>
    <h1>@User.Identity.Name</h1>
    @{
        
        projectManagementWeb.Controllers.DeveloperController controlLayer = new projectManagementWeb.Controllers.DeveloperController();
        projectManagementWeb.Models.Developer.UserDataModel userData = controlLayer.GetUserData(@User.Identity.Name);

        string userNameLocal = string.Empty;
    
        <h2>@userData.UserCompleteName</h2>
        <h2>@userData.UserMail</h2>
    
    }
    @using (Html.BeginForm())
    { 
        @Html.ValidationSummary(true)
        userNameLocal = Request.Form["userName"];
        
        <legend>Esta seguro de querer borrar al usuario '@userNameLocal' </legend>
        <table>
        <tr>
        <td><input type="submit" value="Eliminar" />
       <input type="hidden" name="userName" value="@(userNameLocal)" />
       <input type="hidden" name="DeleteFlag" value="1" />
        </td>
        </tr>
        
        </table>
    }
</fieldset>
